import { Switch, Route } from "react-router-dom";
import Orders from "../components/orders/index";
import Coupons from "../components/coupons/index";
import AddCoupons from "../components/coupons/addCoupon";
import ChangeCoupon from "../components/coupons/changeCoupon";
import ProductList from "../components/ProductList";
import AddProduct from "../components/ProductList/add";
import UploadImg from "../components/ProductList/uploadimg";
import Update from "../components/ProductList/update";
import Users from "../components/users/index.js";
import Admins from "../components/admins/index.js";
import Navs from "../components/navs/index.js";
import AddNav from "../components/navs/addNav.js";
import ChangeNav from "../components/navs/changeNav.js";
import Tabs from "../components/tabs/index.js";
import AddTab from "../components/tabs/addTab.js";
import ChangesTabs from "../components/tabs/changeTab.js";
// eslint-disable-next-line
export default () => {
  return (
    <div>
      <Switch>
        <Route path="/info/orders">
          <Orders />
        </Route>
        <Route path="/info/coupons">
          <Coupons />
        </Route>
        <Route path="/info/addCoupons">
          <AddCoupons />
        </Route>
        <Route path="/info/changeCoupon/:_id">
          <ChangeCoupon />
        </Route>
        <Route path="/info/productlist">
          <ProductList />
        </Route>
        <Route path="/info/add">
          <AddProduct />
        </Route>
        <Route path="/info/upload/:id">
          <UploadImg />
        </Route>
        <Route path="/info/update/:id">
          <Update />
        </Route>
        <Route path="/info/users">
          <Users />
        </Route>
        <Route path="/info/admins">
          <Admins />
        </Route>
        <Route path="/info/navs">
          <Navs />
        </Route>
        <Route path="/info/addNav">
          <AddNav />
        </Route>
        <Route path="/info/changeNav/:id">
          <ChangeNav />
        </Route>
        <Route path="/info/tabs">
          <Tabs />
        </Route>
         <Route exact path="/info/changestabs/:id/:name">
          <ChangesTabs />
        </Route>
        <Route path="/info/addTab">
          <AddTab />
        </Route>
      </Switch>
    </div>
  );
};
